<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <script crossorigin src="https://unpkg.zhimg.com/react@18/umd/react.production.min.js"></script>
  <script crossorigin src="https://unpkg.zhimg.com/react-dom@18/umd/react-dom.production.min.js"></script>
  <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
  <title>demo7</title>
</head>

<body>
  <div id="root"></div>
  <script type="text/babel">
    const rootElement = document.getElementById("root"); const root = ReactDOM.createRoot(rootElement); const ele =
      <div className="Hello" id="demo5">Hello world</div>
    root.render(ele); const myHello = <span>Hello 666 </span>; const Myname = <span>mYName</span>; const dispaly = 'flex'; const flexDirection = 'column'; const ele2 = (
      <div className="Hello66" id="demo5" style={{ dispaly, flexDirection }}>
        {myHello} {Myname}
      </div>); root.render(ele2); const msg = props =>
        <div className='msg'>{props.m}</div>; const ele3 = (
          <div className='demo7'> {msg({ m: 'hello word' })} {msg({ m: '666666' })}</div>
        ); root.render(ele3); const Msg = props =>
          <div className='msg'>{props.m}</div>; const ele4 = (
            <div className='demo77'>
              <Msg m='234234' />
              <Msg m='qweqwe' />
            </div>
          ); root.render(ele4); const Msg2 = props =>
            <div className='msg'>{props.children}</div>; const ele5 = (
              <div className='demo777777'>
                <Msg2>sadasd</Msg2>
                <Msg2>asdasd</Msg2>
              </div>
            ); root.render(ele5); const ele6 = (
              <>
                <Msg2>sadasd</Msg2>
                <Msg2>asdasd</Msg2>
              </>); root.render(ele6);
  </script>
</body>

</html>